package cn.wolfcode.mapper;

import cn.wolfcode.domain.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    /*List<Question> selectById(Long id);*/

    //根据自身id找所有信息(包括items)
    Question selectByQuestionId(@Param("queId") Long queId, @Param("examId") Long examId);
}